<?php 
	$this->headScript()->appendFile(HTTP_HOST.'/js/site-admin/countries.js'); 
	$this->headScript()->appendFile(HTTP_HOST.'/js/jQuery/jquery.cleditor.min.js');
	$this->headLink()->appendStylesheet(HTTP_HOST.'/css/jquery/cleditor/jquery.cleditor.css');
?>

<input type="hidden" name="id" value="<?=$this->country['ID']?>" />
<?php $i = 1;?>
<table id="add_cat_table" style="width: 813px !important">
	<tr class="head">
		<td colspan="2"><?=$this->country['ID'] == 0 ? $this->translate('Добавить страну') : $this->translate('Редактировать страну')?></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('Страна')?>: </td>
		<td><input type="text" name="Name" value="<?=$this->country['Name']?>" maxlength="255"/></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>	
		<td class="field_name"><?=$this->translate('Описание')?>: </td>
		<td><textarea name="description"><?=$this->country['description']?></textarea></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('Активная')?>: </td>
		<td>
			<input type="checkbox" name="active"<?=$this->country['active'] == 1 ? ' checked="checked"' : ''?>/>
		</td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('Порядок сортировки')?>: </td>
		<td>
			<input type="text" name="sort" value="<?=$this->country['sort']?>"  maxlength="255"/>
		</td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('СЕО Титл')?>: </td>
		<td><textarea name="seoTitle"><?=$this->country['seoTitle']?></textarea></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('СЕО Описание')?>: </td>
		<td><textarea name="seoDescription"><?=$this->country['seoDescription']?></textarea></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('СЕО Ключевые слова')?>: </td>
		<td><textarea name="seoKeywords"><?=$this->country['seoKeywords']?></textarea></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('Текст страницы')?>: </td>
		<td><textarea name="pageText"><?=stripslashes($this->country['pageText'])?></textarea>
		<script type="text/javascript">
			$('textarea[name="pageText"]').cleditor();
		</script>
		</td>
	</tr>
	<tr class='add_teble_footer'>
		<td colspan="2">
			<input type="button" value="<?=$this->translate('Сохранить')?>" onclick="saveCountry();" />
		</td>
	</tr>
</table>
<div id="table_shadow"></div>